import { PlusOutlined } from '@ant-design/icons'
import { Link } from 'umi'

import styles from './index.less'
function Createbtn() {

    let flag = localStorage.getItem('collapsed')
    return <div className={styles.Createbtn}>
        <button><PlusOutlined /> {
            flag === "false" ? <span className='XJ'>新建</span> : null
        }
            <div className={styles.link}>
                <Link to={'/article/amEditor'}>新建文章-协同编辑器</Link>
                <Link to={'/article/editor'}>新建文章</Link>
                <Link to={'/page/editor'}>新建页面</Link>
            </div>
        </button>
    </div>
}
export default Createbtn